home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DreamSavers: Garden of Time 3D
/
Garden of Time 3D.iso
/
Garden.ico
/
1049
/
MEDIADATA
/
453
/
shaders
/
Project2.vsh
< prev
next >
Wrap
Text File
|
2005-08-19
|
467b
|
31 lines
vs.1.0
mov r0,v0
//add r0,v0,c0
//mov r0.y,c20.x
m4x4 r1, r0, c4
rcp r2.z,r1.z
mad r2.x,r2.z,r1.x,c0.x
mad r2.x,r2.x,c0.y,c0.z
mad r2.y,r2.z,-r1.y,c1.x
mad r2.y,r2.y,c1.y, c1.z
//mul r0,v0,c2
//add r0,v0,c0
mov oD0, c2
m4x4 oPos, r0, c4
mov oT0.x, r2.x
mov oT0.y, r2.y
m4x4 r9, r0, c8
add r0.x, -r9.z, c10.y
mul r0.x, r0.x, c10.z
max r0.x, r0.x, c0.x ; clamp fog to > 0.0
//min oFog.x, r0.x, c0.z ; clamp fog to < 1.0